patchPath not patchPatch
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 9 Aug 2009 15:27:29 +0000 (15:27 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 9 Aug 2009 15:27:29 +0000 (15:27 +0000)
includes/db/Database.php
maintenance/patchSql.php

index 2fdcb49..e238fbf 100644 (file)
@@ -2083,7 +2083,7 @@ abstract class DatabaseBase {
         * @param $patch String The name of the patch, like patch-something.sql
         * @return String Full path to patch file
         */
-       public static function patchPatch( $patch ) {
+       public static function patchPath( $patch ) {
                global $wgDBtype, $IP;
                if ( file_exists( "$IP/maintenance/$wgDBtype/archives/$name" ) ) {
                        return "$IP/maintenance/$wgDBtype/archives/$name";
index 18835a4..122f23a 100644 (file)
@@ -39,8 +39,8 @@ class PatchSql extends Maintenance {
                foreach( $this->mArgs as $arg ) {
                        $files = array(
                                $arg,
-                               DatabaseBase::patchPatch( $arg ),
-                               DatabaseBase::patchPatch( "patch-$arg.sql" ),
+                               DatabaseBase::patchPath( $arg ),
+                               DatabaseBase::patchPath( "patch-$arg.sql" ),
                        );
                        foreach( $files as $file ) {
                                if( file_exists( $file ) ) {